import request from "../utils/request";

//查询班级列表数据
export const queryPageApi = (name,beginDate,endDate,page,pageSize) => 
    request.get(`/clazzs?name=${name}&beginDate=${beginDate}&endDate=${endDate}&page=${page}&pageSize=${pageSize}`);

//新增班级
export const addApi = (clazz) => request.post('/clazzs',clazz);

//根据ID查询
export const queryInfoApi = (id) => request.get(`/clazzs/${id}`);

//修改班级信息
export const updateApi = (clazz) => request.put('/clazzs',clazz);

//删除
export const deleteApi = (id) => request.delete(`/clazzs/${id}`);